package tom.spring.cloud.stream.reactive.receiver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 引入spring-cloud-stream-reactive
 * https://docs.spring.io/spring-cloud-stream/docs/current/reference/htmlsingle/#spring-cloud-stream-overview-reactive-programming-support
 * reactive响应式编程
 * @author ZHUFEIFEI
 */
@SpringBootApplication
public class ReactiveConsumerApplication {
    public static void main(String[] args) {
        String[] defArgs = new String[args.length + 1];
        defArgs[args.length] = "--spring.profiles.active=consumer";
        SpringApplication.run(ReactiveConsumerApplication.class, defArgs);
    }
}
